<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>我的首页</title>
  <script src="/javascript/javascript.js"></script>
  <link rel="stylesheet" href="/stylesheets/login.css">
</head>
<body>
<div class="navs">
  <nav>
    <span class="titl"><a class="tit" href="/" title="首页">主页</a></span>
    <% if (user) { %>
    <span><a class="head" href="/post">发布</a></span>
    <span><a class="head" href="/archive">存档</a></span>
    <span><a class="head" href="/tags">标签</a></span>
    <!--<span><a class="head" href="/upload">上传</a></span>-->
    <span><a class="out" href="/logout">退出</a></span>
    <%  } else { %>
    <span><a class="log" href="/login" title="登录">登录</a></span>
    <span><a class="re" href="/reg" title="注册">注册</a></span>
    <% } %>
    <span>
    <form action="/search" method="get" class="search">
      <input type="text" placeholder="SEARCH" name="keyword">
    </form>
  </span>
  </nav>
  <h1>用户登录</h1>
  <article>
    <form method="post" id="login">
      <div>
      <label class="loginuser">用&nbsp;户&nbsp;:&nbsp;</label>
      <input type="text" name="name">
      </div>
      <div>
      <label class="scrent">密&nbsp;码&nbsp;:&nbsp;</label>
      <input type="password" name="password">
      </div>
      <button>登录</button>
    </form>
  </article>
</div>
</body>
</html>

